package com.study.spring.ioc.circulardependencies.simple;

/**
 * 这段代码就是循环依赖最初的模样，你中有我，我中有你，
 * 运行就报错 java.lang.StackOverflowError
 */
public class ABTest {

    public static void main(String[] args) {
        new ClazzA();
    }

}

class ClazzA {

    private ClazzB b = new ClazzB();

}

class ClazzB {

    private ClazzA a = new ClazzA();

}


